package com.liao.badminton.mapper;

import com.liao.badminton.code.*;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.liao.badminton.vo.ActivityParticipatorVo;
import org.apache.ibatis.annotations.Mapper;
import com.liao.badminton.entity.ActivityParticipator;
import com.liao.badminton.dto.ActivityParticipatorDto;
import org.apache.ibatis.annotations.Param;
import java.util.List;

/**
* @author liaocheng
* @date 2024-11-15
* description:活动参与者表
*/
@Mapper
public interface ActivityParticipatorMapper extends BaseMapper<ActivityParticipator> {
    int updateBy(ActivityParticipator activityParticipator);
    int add(ActivityParticipator activityParticipator);
    List<ActivityParticipator> findByPageParam(PageParam<ActivityParticipatorDto> activityParticipatorPageParam);
    int countByPageParam(PageParam<ActivityParticipator> activityParticipatorPageParam);
    int deletes(@Param("ids") List<Long> ids);
    List<ActivityParticipator> findByIds(@Param("ids") List<Long> ids);
    void addBatch(List<ActivityParticipator> list);
    ActivityParticipator findById(@Param("id") Long id);
    List<ActivityParticipator> findByParam(@Param("param") ActivityParticipator param);

    List<ActivityParticipatorVo> findByActivityId(Long activityId);

    Integer updates(List list);
}
